EJB Examples
============

Dependencies: Borland Janeva must be installed from the C#Builder Enterprise 
(or Architect edition) CD.

* These examples demonstrate how to write a simple .NET client 
for an EJB application.  The jar files can be deployed using 
the Borland Enterprise Server.  A trial copy can be obtained
from this www.borland.com.


* To run these examples, deploy the EJB with the Borland Enterprise Server 
console application, then build and run the  client application.  Make sure
to set the OSAgent port to 12222.  To set the port number run the utility
called vregedit from the Windows Start | Run dialog. Change the port number 
to 12222 in the vregedit dialog. Alternatively, the port number can be 
changed in the application code to match the OSAgent port:

  string[] args = {"-vbroker.agent.port", "12222"};
 
* The Currency Converter 
This example converts Dutch Guilders to Euros by calling 
a conversion method in the EJB. Run the application then type a number into 
the Guilder text box, and select the "Convert" button to see the conversion
take place.

* Shopping Cart
This example contains a C# client of the Borland Enterprise Server ejb/cart example. 
It demonstrates how to write a simple .NET client for an EJB application.

CartClient.cs
This is the Cart client for the Cart example, written in C#. It demonstrates 
how to use the Cart EJB.

cart_beans.cs
This is stub code generated by java2cs compiler that is used to 
communicate with the Cart EJB.

cart_beans.jar
The jar file built by the BES ejb/cart example   

* One-To-Many Mapping - This example demonstrates how to override value factories to 
provide specialized mappings in the case of one .NET type gets mapped to more than one 
Java types in C#, and the Java sever side expects one of the types that isn't the default 
mapping in Janeva. 

Client.cs
This is the One2Many client written in C#. 

MappingOverrides.cs
This file contains implementations in C# that illustrates 
how to enable the marshaling of a System.Collections.ArrayList as the server 
expected java.util.Vector and java.util.HashSet. 



